import "babel-polyfill";
import Vue from 'vue'
import App from './App.vue'
import store from './store'
import VueRouter from 'vue-router'
import router from './router/index'
import 'assets/stylus/index.styl'
import 'assets/js/filter';
import './use'
import VueI18n from "vue-i18n";
Vue.use(VueI18n)
const i18n = new VueI18n({
  locale: window.localStorage.getItem('locale') == null ? "zh" : window.localStorage.getItem('locale'), // 语言标识，默认中文
  messages: {
    'zh': require('./assets/langs/zh'), // 中文语言包
    'en': require('./assets/langs/en') // 英文语言包
    //语言可扩充
  },
})
Vue.config.productionTip = false
Vue.use(VueRouter)
new Vue({
  router,
  store,
  i18n,
  render: (h) => h(App),
}).$mount("#app");
